package com.fy.login;

import javax.security.auth.Subject;

/**
 * @author zhufeifei 2022/8/7
 **/


public interface IEventListener {
    void action(BaseMetadata metadata, Subject subject);
    /**
     * 注册自身
     * @param type 注册类型
     */
    default void register(EventListeners.Type type) {
        EventListeners.register(type, this);
    }
}
